﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Zosnn.BLL;
using Zosnn.Models;

namespace Zosnn.WebAPI.Controllers
{
    [ApiDocumentation("用户信息")]

    public class UserController : ApiController
    {
        [ApiDoc("获取用户信息")]
        public IEnumerable<User> Get()
        {
            IQueryable<User> list = ServiceFactory.ServiceUser.FindList();
            // list.Add(new User() { Name = "a" });
            //return con.Users; ;
            return list;
        }

        // GET api/<controller>/5
        public string Get(int id)
        {
            return "value";
        }

        // POST api/<controller>
        public void Post([FromBody]string value)
        {
        }

        // PUT api/<controller>/5
        public void Put(int id, [FromBody]string value)
        {
        }

        // DELETE api/<controller>/5
        public void Delete(int id)
        {
        }
    }
}